﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ASKM.Rachao.Web.Site.Admin
{
    public partial class Languages : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                this.FillGrid();
            }
        }

        protected void FillGrid()
        {
            grvLanguages.DataSource = this.GetLanguages();
            grvLanguages.DataBind();
        }


        protected IList<Model.Language> GetLanguages()
        {
            Model.Facade.Admin facade = new Model.Facade.Admin();
            return facade.GetLanguages();
        }

    }
}